<?php

class shipping_carrier_fs extends a_base_shipping_carrier{
    public function __construct(stdClass $carrier_data_row){
        parent::__construct($carrier_data_row);
    }

    public function get_shipgment_transactional_info(order_m_order $obj){
         return "Shipping was free  - $0.0";
    }
    
    public function get_error_message(){
        return "";
    }

    public function __save_shipping_info(shipping_rate_object $sro){
        
    }

    public function __get_rates(){
        $rate = new shipping_rate_object();
        $rate->id = "option_one";
        $rate->desc = "Free Shipping";
        $rate->price = "0.0";
        return $rate;
    }

    public function clear_shipment_info(){

    }
    
    public function is_valid_for_rates(){
        return TRUE;
    }
    
    public function get_valid_rate_selection(shipping_rates $sr,CI_Input $ci_post){

        $rate = new shipping_rate_object();
        $rate->id    = "option_one";
        $rate->desc  = "Free Shipping";
        $rate->note  = "Free shipping..";
        $rate->price = 0.1;
        $rate->carrier_id = $this->get_carrier_id();
        return $rate;       
    }
}
?>